﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="newsList.aspx.cs" Inherits="newsList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>图科新闻，天下新闻一网打尽，看新闻Too OK! http://www.TooOK.com</title>
    <script type="text/javascript" src="js/AddAd.js"></script>    
    <link href="css/index.css" rel="stylesheet" type="text/css" />
</head>
<body onload="AddNewsListAd()"><center>
    <form id="form1" runat="server">
    <div id="pageBox">
        <div id="menuFrameBox">
           <iframe src='siteMenu.html' class='iframeMenu' frameborder='0' scrolling='no' ></iframe>
        </div>
        <div id="adHead">    
        </div>
        <div id="mainBox">           
            <div id="newsCol">
                <asp:DataList ID="DataListNews" runat="server" DataKeyField="NewsId" DataSourceID="AccessDataSourceNews" EnableViewState="False"  RepeatColumns="2" RepeatDirection="Horizontal" Width="100%">
                    <ItemTemplate>                       
                        <a href='newsdetail/<%# Eval("NewsId") %>.html' target="_blank">                        
                        <asp:Label ID="NewsTitleLabel" runat="server" Text='<%# Eval("NewsTitle") %>'></asp:Label></a>                       
                        <span class="newsdate"><%# Eval("PubDate") %></span>
                        <br />
                    </ItemTemplate>
                </asp:DataList><asp:AccessDataSource ID="AccessDataSourceNews" runat="server" DataFile="~/App_Data/rss.mdb"
                    SelectCommand="SELECT [NewsId], [NewsTitle], [PubDate] FROM [MyNewsDetailList] WHERE ([SiteKind] = ?)">
                    <SelectParameters>
                        <asp:QueryStringParameter DefaultValue="native" Name="SiteKind" QueryStringField="type"
                            Type="String" />
                    </SelectParameters>
                </asp:AccessDataSource>
            </div>
            <div id="adCol">
                       
            </div>            
        </div>
        <div id="adBottom"></div>
        <div id="copyRight">天下新闻一网打尽，精彩小说尽情阅读<hr />
                &copy2009   AMBMH.com
        </div>
    </div>
    </form></center>
</body>
</html>
